<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><s:property value="#session.access"/></title>
<meta name="viewport" content="width=device-width,inital-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/css/bootstrap.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath() %>/css/bootstrap-responsive.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath() %>/js/date/skin/WdatePicker.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validate/validate.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/bootstrap.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/date/WdatePicker.js"></script>
<script type="text/javascript">
	$(function() {
		$("#sform").validate({
			rules : {
				cbNo : {	required : true	}
			},
			errorPlacement : function(error, element) {
				element.css("border-color","red");
			},
		});
	});
	
	function formSubmit(no){
		if($('#sform').valid()){
			$.MsgBox.Confirm('提示', '确认撤销退款申请吗?', function(){
					$('#sform').submit();
			});
		}
		
	}
</script>
</head>
<body>
	<div class="container">
		
		<s:action name="global_menu"  executeResult="true"></s:action>
		
		<div class="row">
			<div class="span12">
					<ul class="breadcrumb">
						<li>
							<a href="javascript:void(0)">首页</a> <span class="divider">/</span>
						</li>
						<li>
							<a href="javascript:void(0)">交易管理</a> <span class="divider">/</span>
						</li>
						<li class="active">
							交易详情
						</li>
					</ul>
					
					<h4>
						交易信息
					</h4>
					
					<div class="hero-unit" style="padding: 15px;font-size: 14px;line-height: 20px;">
						<table width="95%" border="0" >
							<tr>
									<td height="30"  >编号 : </td><td colspan="3"><s:property value="@utils.StringUtil@limit(transactionBean.txnNo,40)"/></td>
									<td height="30"  >持卡人编号 : </td><td colspan="3"><s:property value="@utils.StringUtil@limit(transactionBean.crdNo,40)"/></td>
							</tr>
							<tr>
									<td height="30" >商户订单号 : </td><td colspan="3"><s:property value="@utils.StringUtil@limit(transactionBean.txnOrder,40)"/></td>
									<td height="30" >来源网站 : </td><td colspan="3"><s:property value="@utils.StringUtil@limit(transactionBean.txnSite,40)"/></td>
							</tr>
							<tr>
									<td height="30" >产品信息 : </td><td colspan="3"><s:property value="@utils.StringUtil@limit(transactionBean.txnProduct,40)"/></td>
									<td height="30" >商户通知地址 : </td><td colspan="3"><s:property value="@utils.StringUtil@limit(transactionBean.txnNotify,40)"/></td>
							</tr>
							<tr>
									<td height="30" >原交易币种 : </td><td colspan="3"><s:property value="@utils.StringUtil@limit(transactionBean.txnCur,40)"/></td>
									<td height="30" >原交易金额 : </td><td colspan="3"><s:text name="global.format.number"><s:param value="transactionBean.txnLoc" /></s:text></td>
							</tr>
							<tr>
									<td height="30" >实时汇率 : </td><td colspan="3"><s:text name="global.format.number"><s:param value="transactionBean.txnRate" /></s:text></td>
									<td height="30" >交易金额 : </td><td colspan="3"><s:text name="global.format.number"><s:param value="transactionBean.txnAmount" /></s:text>&nbsp; &nbsp;(剩余<s:text name="global.format.number"><s:param value="transactionBean.txnRemain" /></s:text>)</td>
							</tr>
							<tr>
									<td height="30"  style="width: 12.5%;">退款状态 : </td><td style="width: 12.5%;"><s:if test="transactionBean.txnRefund==0"><font color="red">无效</font></s:if><s:else><font color="green">有效</font></s:else></td>
									<td height="30"  style="width: 12.5%;">拒付状态 : </td><td style="width: 12.5%;"><s:if test="transactionBean.txnRefuse==0"><font color="red">无效</font></s:if><s:else><font color="green">有效</font></s:else></td>
									<td height="30"  style="width: 12.5%;">冻结状态 : </td><td style="width: 12.5%;"><s:if test="transactionBean.txnFreeze==0"><font color="red">无效</font></s:if><s:else><font color="green">有效</font></s:else></td>
									<td height="30"  style="width: 12.5%;">发货状态 : </td><td style="width: 12.5%;"><s:if test="transactionBean.txnLogic==0"><font color="red">无效</font></s:if><s:else><font color="green">有效</font></s:else></td>
							</tr>
							<tr>
									<td height="30" >结算状态 : </td><td><s:if test="transactionBean.txnSettle==0"><font color="red">无效</font></s:if><s:else><font color="green">有效</font></s:else></td>
									<td height="30" >风险状态 : </td><td><s:if test="transactionBean.txnDanger==0"><font color="red">无效</font></s:if><s:else><font color="green">有效</font></s:else></td>
									<td height="30" >可见状态 : </td><td><s:if test="transactionBean.txnVisible==0"><font color="red">无效</font></s:if><s:else><font color="green">有效</font></s:else></td>
									<td height="30" >支付状态 : </td><td><s:if test="transactionBean.txnState==0"><font color="red">无效</font></s:if><s:else><font color="green">有效</font></s:else></td>
							</tr>
							<tr>
									<td height="30" >发生日期 : </td><td colspan="3"><s:text name="global.format.datetime"><s:param value="transactionBean.txnDate" /></s:text></td>
									<td height="30" >交易备注 : </td><td colspan="3"><s:property value="@utils.StringUtil@limit(transactionBean.txnRemark,40)"/></td>
							</tr>
							
							</table>
						</div>
			
						<h4>
							关联出账信息
						</h4>
					
						<div class="hero-unit" style="padding: 15px;font-size: 14px;line-height: 20px;">
							<table width="95%" border="0" >
								<tr>
										<td height="30"  style="width: 12.5%;">流水号 : </td><td style="width: 37.5%;"><s:property value="cbBean.cbNo"/></td>
										<td height="30"  style="width: 12.5%;">出账日期 : </td><td style="width: 37.5%;"><s:text name="global.format.dateminute"><s:param value="cbBean.cbDate"/></s:text></td>
								</tr>
								<tr>
										<td height="30" >状态 : </td><td >
											<s:if test="#show.cbState==0"><font color="red">无效</font></s:if><s:else><font color="green">有效</font></s:else>
										</td>
										<td height="30" ></td><td>
										</td>
								</tr>
							</table>
						</div>
							
						
						<h4>
							撤销退款
						</h4>
							
						<div class="hero-unit" style="padding: 15px;font-size: 14px;line-height: 20px;">
						<form id="sform" action="cb_savecanel.html" method="post" enctype="multipart/form-data">
						<input type="hidden"  id="txnNo" name="txnNo"  value="<s:property value="transactionBean.txnNo"/>"/>
						<input type="hidden" id="cbNo" name="cbNo" value="<s:property value="cbBean.cbNo"/>">
							<table width="95%" border="0" >
								<tr>
									<td height="30"  style="width: 25%;" align="right">交易金额 : </td>
									<td style="width: 25%;">
									 <s:text name="global.format.number"><s:param value="transactionBean.txnAmount" /></s:text> CNY
									 </td>
									 <td  style="width: 25%;" align="left">原金额 : <s:text name="global.format.number"><s:param value="transactionBean.txnLoc" /></s:text> <s:property value="transactionBean.txnCur" /></td>
									 <td>
									  
									 </td>
								</tr>
								<tr>
									<td height="30"  style="width: 25%;" align="right">可退余额 : </td>
									<td colspan="3">
									 <s:text name="global.format.number"><s:param value="transactionBean.txnRemain" /></s:text> CNY
									 </td>
								</tr>
								<tr>
									<td height="30"  style="width: 25%;" align="right">申请退款金额 : </td>
									<td ><s:text name="global.format.number"><s:param value="cbBean.cbAmount" /></s:text> CNY
									</td>
									<td><label class="condition" >(CNY)</label><label class="condition"  style="display: none;">(<s:property value="transactionBean.txnCur" />)</label></td>
									<td></td>
								</tr>
								<tr>
									<td height="30"  style="width: 25%;" align="right">申请退款原因 : </td>
									<td colspan="3"> <s:property value="cbBean.cbRemark"/>
									</td>
								</tr>
								<tr>
									<td height="30" ></td>
									<td colspan="3"><input type="button"  class="btn btn-primary"  value="提交" onclick="formSubmit('<s:property value="cbBean.cbNo"/>');"/></td>
								</tr>
							
							</table>
						</form>
						</div>
						
						<div class="hero-unit" style="padding: 15px;font-size: 14px;line-height: 20px;">
						<p>
							1 . 请尽可能填写退款原因以便工作人员对应处理
						</p>
						<p>
							2 . 部分收单行可能会不允许部分退款,请注意返回的提示信息.
						</p>
						<s:if test="#session.merchant.merRefunding==1">
						<p>
							3 . 如果您在交易的24小时内进行退款,将按照退款金额的比例退还相应的手续费.
						</p>
						</s:if>
					</div>
					
				</div>
			</div>
		
		
		
		<s:action name="global_foot"  executeResult="true"></s:action>
	</div>
</body>
</html>


